﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Kunde/WebsiteCustomer.master" AutoEventWireup="true" CodeBehind="Historik.aspx.cs" Inherits="TireService.Website.Kunde.Historik" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">

    <h3>Besked log</h3>

    <!-- List with maillog for customer -->
    <dx:ASPxGridView ID="gvCustomerEmailLog" runat="server" ClientInstanceName="gvCustomerEmailLog" Caption="Besked log" 
        KeyFieldName="ServiceCarScheduleDetailRatingId" 
        AutoGenerateColumns="False" EnableCallBacks="True" Width="100%"
        OnCustomCallback="gvCustomerEmailLog_CustomCallback">
        <SettingsLoadingPanel Text="Henter&amp;hellip;" />
        <Settings ShowHeaderFilterButton="false" ShowGroupPanel="false" ShowFilterRow="false" />
        <SettingsPager AlwaysShowPager="false" PageSize="10" Position="Bottom">
            <Summary 
                AllPagesText="Sider: {0} - {1} ({2} emails)" 
                Text="Side {0} af {1} ({2} emails)" />
        </SettingsPager>
        <SettingsText ConfirmDelete="Vil du slette denne anmeldelse?" />
        <SettingsBehavior ConfirmDelete="True" AllowGroup="true" AllowDragDrop="true" />
        <Columns>
            <dx:GridViewDataColumn FieldName="SendDate" VisibleIndex="2" Caption="Dato">
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn FieldName="Subject" VisibleIndex="3" Caption="Emne">
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn VisibleIndex="4" Caption="Detaljer">
                <DataItemTemplate>
                    <a href="javascript:void(0);" onclick="OnMoreInfoClick(this, '<%# Eval("Message") %>')"></a>
                </DataItemTemplate>
            </dx:GridViewDataColumn>
        </Columns>                                            
    </dx:ASPxGridView>

</asp:Content>
